home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / life.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  62 lines

  1. Conway's "Game of Life", for the 48sx, parts written in ML. 
  2.  
  3. LIFE is Freeware from Timm Ganske 
  4.                       Vordergasse 67 
  5.                W-6054 Rodgau 1/Juegesheim 
  6.                       Germany 
  7.  
  8. Date: 1 October 1991 
  9.  
  10. [Note from Joe Horn: In case you've never heard of the classic "Game 
  11. of Life" invented by mathematician John Conway, you'll find Life 
  12. fascinating.  It's a visual delight.  Here's a thumbnail sketch of 
  13. what it's all about.  When you're growing mold in a petri dish (or 
  14. when you see mushrooms growing in your lawn, or the macropopulation 
  15. density of inner cities, or mildew growing on your shower wall...), 
  16. you see definite patterns of growth (expansion and rearrangement) and 
  17. decay (death).  If you divide up the growth space into a grid, each 
  18. cell has eight neighbors (one on each side and at each corner): 
  19.  
  20.                 +--------+--------+--------+ 
  21.                 |        |        |        | 
  22.                 |neighbor|neighbor|neighbor| 
  23.                 |        |        |        | 
  24.                 +--------+--------+--------+ 
  25.                 |        |        |        | 
  26.                 |neighbor|  CELL  |neighbor| 
  27.                 |        |        |        | 
  28.                 +--------+--------+--------+ 
  29.                 |        |        |        | 
  30.                 |neighbor|neighbor|neighbor| 
  31.                 |        |        |        | 
  32.                 +--------+--------+--------+ 
  33.  
  34. Conway proposed a simple model of growth & decay.  If a living cell 
  35. has more than 3 living neighbors, it would die (overpopulation? 
  36. starvation? not enough privacy?), and if it has less than 2 living 
  37. neighbors, it also dies (loneliness? boredom?). Thus a living cell can 
  38. only survive with exactly two or three living neighbors.  On the other 
  39. hand, a dead cell will come to life if it has exactly three living 
  40. neighbors.  Each iteration therefore results in some cells coming to 
  41. life, some dying, and most staying the same. Although it is called the 
  42. "game" of Life, you don't "play" it, you just watch it.  But I warn 
  43. you: it can be mesmerizing and highly addictive!  -jkh-] 
  44.  
  45. Usage: 
  46.  
  47. LIFE   expects a GROB from the stack and calculates Life until a key is 
  48.        pressed; don't use ON. 
  49.  
  50. LIFE1  calculates only one iteration of Life 
  51.  
  52.       Both return the actual graphic 
  53.  
  54. BILD1 
  55. BILD2 
  56.       Demo pictures, Bild 2 is the classical 'Gleiterkanone' 
  57.  
  58. [Note: in English, it's commonly called a "walker gun".  It's a 
  59. complex structure that creates "walkers", the tiny shapes that walk 
  60. across the screen.  Other common shapes have names too, among Life 
  61. afficionados.  -jkh-] 
  62.